{php include wl_template('common/header');}
<ul class="nav nav-tabs">
    <li><a href="{php echo web_url('dating/matchmaker/matchmakerList')}">红娘列表</a></li>
    <li class="active"><a href="javascript:;">{if $id}编辑{else}添加{/if}红娘</a></li>
</ul>
<div class="app-content">
    <div class="app-form">
        <div class="panel panel-default">
            <form class="form-horizontal form-validate" method="post">
                <div class="form-group">
                    <label class="col-sm-2 control-label">选择用户<span style='color:red'>*</span></label>
                    <div class="col-sm-9">
                        {php echo tpl_select_user('data[mid]', $info['mid']);}
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">红娘昵称</label>
                    <div class="col-sm-9">
                        <input class="form-control" type="text" name="data[nickname]" value="{$info['nickname']}"/>
                        <div class="help-block">不填则使用用户昵称</div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">红娘头像</label>
                    <div class="col-sm-9">
                        {php echo attachment_select('data[avatar]',$info['avatar']);}
                        <div class="help-block">不填则使用用户头像</div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">联系方式<span style='color:red'>*</span></label>
                    <div class="col-sm-9">
                        <input class="form-control" type="text" required name="data[phone]" value="{$info['phone']}"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">微信号</label>
                    <div class="col-sm-9">
                        <input class="form-control" type="text" ame="data[wechat_number]" value="{$info['wechat_number']}"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">QQ号</label>
                    <div class="col-sm-9">
                        <input class="form-control" type="text" name="data[qq_unmber]" value="{$info['qq_unmber']}"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">描述信息</label>
                    <div class="col-sm-9">
                        <textarea class="form-control" name="data[describe]"  style="resize: none;height: 150px;">{$info['describe']}</textarea>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">二维码<span style='color:red'>*</span></label>
                    <div class="col-sm-9">
                        {php echo attachment_select('data[qrcode]',$info['qrcode']);}
                        <div class="help-block">微信二维码或者QQ二维码图片,推荐比例150*150</div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-9">
                        <input type="hidden" name="token" value="{$_W['token']}" />
                        <input type="hidden" name="id" value="{$id}" />
                        <input type="submit" name="submit" value="提交" class="btn btn-primary col-sm-1 min-width" />
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
{php include wl_template('common/footer');}
